package gui;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JEditorPane;
import java.awt.Color;
import java.awt.event.ActionListener;
import javax.swing.UIManager;
import data.Dao;

public class Showbalance extends JPanel {

	private Dao db;
	private JEditorPane BcBalance;
	private JEditorPane DkkBalance;
	private JButton btnMenu;
	

	/**
	 * Create the panel.
	 */
	public Showbalance() {
		setBackground(UIManager.getColor("Button.background"));
		setLayout(null);

		JLabel lblBalance = new JLabel("Show balance");
		lblBalance.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblBalance.setBounds(180, 39, 91, 16);
		add(lblBalance);

		JLabel lblYourBalanceIs = new JLabel("Your balance is:");
		lblYourBalanceIs.setBounds(53, 124, 100, 16);
		add(lblYourBalanceIs);

		JLabel lblBitcoin = new JLabel("bitcoin");
		lblBitcoin.setFont(new Font("Tahoma", Font.PLAIN, 10));
		lblBitcoin.setBounds(282, 126, 46, 14);
		add(lblBitcoin);

		JLabel lblDkk = new JLabel("DKK");
		lblDkk.setFont(new Font("Tahoma", Font.PLAIN, 10));
		lblDkk.setBounds(282, 157, 46, 14);
		add(lblDkk);

		btnMenu = new JButton("Menu");
		btnMenu.setBounds(64, 214, 89, 23);
		add(btnMenu);

		BcBalance = new JEditorPane();
		BcBalance.setBounds(163, 151, 109, 20);
		add(BcBalance);

		DkkBalance = new JEditorPane();
		DkkBalance.setBounds(163, 120, 109, 20);
		add(DkkBalance);

	}

	public void addActionListener(ActionListener l) {
		btnMenu.addActionListener(l);

	}

	public JEditorPane getBcBalance() {
		return BcBalance;
	}

	public JEditorPane getDkkBalance() {
		return DkkBalance;
	}

	public JButton getBtnMenu() {
		return btnMenu;
	}

}
